package com.ruoyi.hr.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Education;
import com.ruoyi.hr.mapper.EducationMapper;
import com.ruoyi.hr.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EducationServiceImpl implements EducationService {
    @Autowired
    private EducationMapper educationMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Education> findEducations(Long eid) {
        return educationMapper.findEducations(eid);
    }
}
